package com.night.student.service;

import com.night.common.entity.PageBean;
import com.night.common.entity.student.Evaluate;
import com.night.common.entity.student.EvaluateVo;
import com.night.common.entity.student.ShowEvaluate;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Mr.Wang
 * @ClassName: EvaluateMapper
 * @Description: //TODO
 * @date: 2022/10/20-12:08
 */
public interface EvaluateService {
    //新增评价
    void insert(Evaluate evaluate);
    //学生评价
    void update(Evaluate evaluate);
    //查哪些需要评价
    List<Evaluate> getUnevaluate(int studentId);
    //根据老师id或课程id查评价,或评分低于给定值或高的评价
    PageBean<List<Evaluate>> getByCondition(EvaluateVo evaluateVo);
    //根据老师id得到平均评分
    ShowEvaluate getScoreByTeach(int id);
    //根据课程ids得到平均评分
    ShowEvaluate getScoreByCourse(int[] ids);
}
